<?php

class EmbeddedParticipantForm extends ParticipantForm
{

  public function configure ()
  {
    parent::configure();
    
    // Flag all fields as not required to allow for post validator to take affect
    $fields = $this->getWidgetSchema()
      ->getFields();
    foreach ($fields as $name => $widget)
    {
      $validator = $this->validatorSchema[$name];
      if ($validator->hasOption('required'))
      {
        $validator->setOption('required', false);
      }
    }
  }
}